<!--承包费收费-->
<template>
<div class="public-common">
    <div class="public-title">承包费缴费列表</div>
    <el-form :model="form" label-width="120px">
      <el-row>
        <el-col :span="14">
          <el-form-item label="名称">
            <el-input v-model="form.ming" placeholder="请输入搜索关键词进行快速搜索"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="10">
          <el-button type="primary" icon="el-icon-search" style="margin-left:10px;">搜索</el-button>
          <el-button type="primary" icon="el-icon-tickets" @click="dialogVisible=true">新建</el-button>
          <el-button type="primary" icon="el-icon-delete">作废</el-button>
          <el-button type="primary" icon="el-icon-receiving">打印</el-button>
        </el-col>
      </el-row>
    </el-form>
    <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
                label="车牌号" fixed="left" prop="a1">
            </el-table-column>
            <el-table-column
                label="所属车队" prop="a2">
            </el-table-column>
            <el-table-column
                label="车辆类型" prop="a3">
            </el-table-column>
            <el-table-column
                label="承包费(元)" prop="a4">
            </el-table-column>
            <el-table-column
                label="变更承包费(元)" prop="a5">
            </el-table-column>
            <el-table-column
                label="凭证号" prop="a6">
            </el-table-column>
            <el-table-column
                label="本次缴费金额(元)" prop="a7">
            </el-table-column>
            <el-table-column
                label="缴费年份" prop="a8">
            </el-table-column>
            <el-table-column
                label="缴费月份" prop="a9">
            </el-table-column>
            <el-table-column
                label="缴费日期" prop="a10">
            </el-table-column>
            <el-table-column
                label="缴费状态" prop="a11">
            </el-table-column>
            <el-table-column
                label="延期天数" prop="a12">
            </el-table-column>
            <el-table-column
                label="是否缴清" prop="a13">
            </el-table-column>
        </el-table>
        <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
        </el-pagination>
        <el-dialog title="承包费缴费" :visible.sync="dialogVisible" width="40%" >
        	<el-form :model="editForm" ref="editForm" label-width="80px" class="qysb-form-f" >
        	<el-scrollbar style="height:100%;">
        		<el-row>
        			<el-col :span="24">
        			  <el-form-item label="缴费车号" class="cyqlabel">
        			  		<el-select style="width: 100%;" placeholder="请选择" v-model="form.ranl1">
        			  			<el-option v-for="(v,i) in item" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
        			  		</el-select>
        			  </el-form-item>
        			</el-col>
           </el-row>
           <el-row>
        			<el-col :span="24">
        			  <el-form-item label="所属车队" class="cyqlabel">
        			  		<el-input size="small" v-model="editForm.ranl2" ></el-input>
        			  </el-form-item>
        			</el-col>
           </el-row>
            <el-row>
        			<el-col :span="24">
        			  <el-form-item label="车辆类型" class="cyqlabel">
        			  		<el-input size="small" v-model="editForm.ranl3" ></el-input>
        			  </el-form-item>
        			</el-col>
           </el-row>
            <el-row>
        			<el-col :span="24">
        			  <el-form-item label="车辆性质" class="cyqlabel">
        			  		<el-input size="small" v-model="editForm.ranl4" ></el-input>
        			  </el-form-item>
        			</el-col>
           </el-row>
            <el-row>
        			<el-col :span="24">
        			  <el-form-item label="承包费(元)" class="cyqlabel">
        			  		<el-input size="small" v-model="editForm.ranl5" ></el-input>
        			  </el-form-item>
        			</el-col>
           </el-row>
            <el-row>
        			<el-col :span="24">
        			  <el-form-item label="缴费月份" class="cyqlabel">
        			  		<el-date-picker style="width: 100%;" format="yyyy/MM/dd" value-format="yyyy/MM/dd" v-model="editForm.ranl6" type="date"></el-date-picker>
        			  </el-form-item>
        			</el-col>
           </el-row>
            <el-row>
        			<el-col :span="24">
        			  <el-form-item label="缴费金额(元)" class="cyqlabel">
        			  		<el-input size="small" v-model="editForm.ranl7" ></el-input>
        			  </el-form-item>
        			</el-col>
           </el-row>
            <el-row>
        			<el-col :span="24">
        			  <el-form-item label="备注信息" class="cyqlabel">
        			  		<el-input size="small" type="textarea" v-model="editForm.ranl8" ></el-input>
        			  </el-form-item>
        			</el-col>
           </el-row>

            <div style="text-align:center;margin-top:6px;">
              <el-button type="primary" @click="">确认</el-button>
              <el-button type="primary" @click="">应用</el-button>
              <el-button type="info" size="small" @click="dialogVisible=false">取消</el-button>
            </div>
           </el-scrollbar>
           </el-form>
         </el-dialog>
</div>
</template>

<script>
export default {
    data(){
        return {
          dialogVisible:false,
          tabledata:[
            {
              a1: '陕A58491',
              a2: '宝马',
              a3: '四系',
              a4: '￥55000',
              a5: '￥75000',
              a6: 'PZ12331',
              a7: '￥1000 ',
              a8: '2019年',
              a9: '3月',
              a10: '2019-3-3',
              a11: '已缴费完毕',
              a12: '无 ',
              a13: '已缴清',
            },
            {
              a1: '陕A68594',
              a2: '奔驰',
              a3: '四系',
              a4: '￥85000',
              a5: '￥95000',
              a6: 'PZ12323',
              a7: '￥500 ',
              a8: '2019年',
              a9: '7月',
              a10: '2019-7-3',
              a11: '已缴费完毕',
              a12: '无 ',
              a13: '已缴清',
            },
            {
              a1: '陕A58695',
              a2: '奥迪',
              a3: 'A4',
              a4: '￥65000',
              a5: '￥75000',
              a6: 'PZ12333',
              a7: '￥1000 ',
              a8: '2019年',
              a9: '4月',
              a10: '2019-4-3',
              a11: '已缴费完毕',
              a12: '无 ',
              a13: '已缴清',
            },
          ],
          page:{
            now:1,
            pagesize:10,
            sizes:[2,10, 20, 50, 100],
            total:0,
            key:''
          },
          form:{
            ming:''
          },
          editForm:{
            ranl1:'',
            ranl2:'',
            ranl3:'',
            ranl4:'',
            ranl5:'',
            ranl6:'',
            ranl7:'',
            ranl8:'',
          },
          item:[
          	{text:'00B3Y',value:'0'},
          	{text:'00B6X',value:'1'},
          	{text:'00C9E',value:'2'},
          ],
        }
    },
    methods:{
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>

<style>
  .cyqlabel .el-form-item__label {
    width: 100px !important;
  }

  .cyqlabel .el-form-item__content {
    margin-left: 100px !important;
  }
  .public-common .el-form-item .el-input{ width: 100%;}
  .public-title,.fuwukab{line-height: 30px;background-color: #deecfd;padding:0 10px;margin-bottom:20px;color: #15428F}
  .el-scrollbar__wrap{ margin: 0 !important;}
  .el-dialog__body {
      padding: 10px 20px;
  }
</style>
